import Home from './components/Home'
import News from './components/News.vue'
import Detail from './components/Detail.vue'
import Login from './components/Login.vue'
import Register from './components/Register.vue'
import scene from './components/scene.vue'
import productlist from './components/productlist.vue'
import product from './components/product.vue'
import shoppingCar from './components/shoppingCar.vue'
import selectAddress from './components/selectAddress.vue'

export default{
  routes: [
    {
      name:'home',
      path: '/home',
      component: Home,
     /* children: [
        { path: '/login', component: Login,name:'login', },
        { path: '/register', component: Register,name:'register', }
      ]*/
    },
    {
      name:'news',
      path: '/news',
      component: News,
      /*children: [
      { path: '/detail', component: Detail, name:'detail', }
      ]*/
    },
    {
      name:'scene',
      path: '/scene',
      component: scene,
    },
    {
      name:'productlist',
      path: '/productlist',
      component: productlist,
    },
    {
      name:'product',
      path: '/product',
      component: product,
    },
    {
      name:'shoppingCar',
      path: '/shoppingCar',
      component: shoppingCar,
    },
    {
      name:'selectAddress',
      path: '/selectAddress',
      component: selectAddress,
    }
    ,
    {path: '*', redirect: '/home'}
  ]
}
